﻿using System.Windows.Controls;

namespace Flare.Pages.Hards
{
    public partial class Details : UserControl, ITypicalPage
    {
        public string name
        {
            get { return "Подробнее"; }
        }
        int _hw_id;

        public Details(int hw_id)
        {
            this.DataContext = new DB.equipments().Details(hw_id);
            _hw_id = hw_id;
            InitializeComponent();
        }

        private void MoveThis_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            glob.kernel.ShowPage(typeof(Pages.Hards.Move), _hw_id, replace_current: true);
        }

        private void EditThis_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            glob.kernel.ShowPage(typeof(Pages.Hards.Edit), _hw_id, replace_current: true);
        }

        private void RemoveThis_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            glob.kernel.ShowPage(typeof(Pages.Hards.Delete), _hw_id, replace_current: true);
        }
    }
}
